<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{{env('WEB_NAME')}}</title>
    <link rel="stylesheet" href="{{ asset('css/app.css') }}">
    <style>
        .main {
            width: 60vw;
            height: 60vh;
            /*line-height: 60vh;*/
            font-size: 30px;
            text-align: center;
            max-width: 700px;
            margin: 20vh auto;
        }

        .jump {
            font-size: 16px;
        }

        .time {
            color: #b43838;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="main">
        <p>@{{ message }}</p>
        <p class="jump"><span class="time">@{{ time }} </span>秒后跳转</p>
    </div>
</div>
<script src="{{ asset(env("CDN_HOST")."/resources/vue/vue.min.js") }}"></script>
<script>
    // window.Vue = require('vue');
    // console.dir(app);
    var app = new Vue({
        el: '#app',
        data: {
            message: '{{ $message }}'
            , time: '{{ $time }}'
        }
    })
    var time = setInterval(function () {
        if (app.time == 1) {
            clearInterval(time)
            window.location.href = '{{url($url)}}'
        } else
            app.time--
    }, '1000')
    // app.message = "哈哈哈";
</script>
</body>
</html>